#FROM maven:3.3.3

#ADD pom.xml /tmp/build/
#RUN cd /tmp/build && mvn -q dependency:resolve

#ADD src /tmp/build/src
        #构建应用
#RUN cd /tmp/build && mvn -q -DskipTests=true package \
        #拷贝编译结果到指定目录
#        && mv target/*.jar /app.jar \
        #清理编译痕迹
#        && cd / && rm -rf /tmp/build

#VOLUME /tmp
#EXPOSE 8080
#ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
FROM fabric8/java-jboss-openjdk8-jdk:1.2.3
USER root
ENV HOME="/root"
RUN localedef -i zh_CN -f UTF-8 zh_CN.UTF-8
ENV LANG zh_CN.utf8
ENV LC_ALL zh_CN.utf8
RUN echo 'Asia/Shanghai' > /etc/timezone
WORKDIR ${HOME}
COPY /target/kumi-0.0.1-SNAPSHOT.jar  ${HOME}/ROOT.jar
EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar", "ROOT.jar"]
